package com.example.demo.controller;

import com.example.demo.Bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


@RestController
public class RegisterController {
    @RequestMapping("/registeruser")
    public ModelAndView registerUser(@RequestParam("Email") String Email,
                                     @RequestParam("Password") String passWord){
        User user = new User();
        user.setUserPswd(passWord);
        user.setUserEmail(Email);
        System.out.println(user);
        return null;
    }
}
